import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        double dd = RR.fun();
        System.out.printf("%.2f", dd);
    }
}

class RR {
    public static double fun() {
        Scanner scanner = new Scanner(System.in);
        double[] numbers = new double[5];

        // 读取 5 个实数
        for (int i = 0; i < 5; i++) {
            numbers[i] = scanner.nextDouble();
        }

        // 对数组进行排序
        Arrays.sort(numbers);

        // 返回中间的数
        return numbers[2];
    }
}